package com.pickgliss.ui
{
	import com.greensock.easing.Sine;
	
	import flash.display.DisplayObjectContainer;

	public final class ComponentSetting
	{
		/**
		 * 按钮按住时开始 发出change的时间 
		 */		
		public static var BUTTON_PRESS_START_TIME:int = 500;
		/**
		 *  按钮按住时每次发出change的时间间隔 
		 */		
		public static var BUTTON_PRESS_STEP_TIME:int = 100;
		/**
		 * Combox执行隐藏缓动动画的缓动函数 
		 */		
		public static var COMBOBOX_HIDE_EASE_FUNCTION:Function = Sine.easeIn;
		/**
		 * Combox执行隐藏缓动动画的时间
		 */	
		public static var COMBOBOX_HIDE_TIME:Number = 0;
		/**
		 * Combox执行展示缓动动画的缓动函数 
		 */
		public static var COMBOBOX_SHOW_EASE_FUNCTION:Function = Sine.easeInOut;
		/**
		 * Combox执行展示缓动动画的时间
		 */
		public static var COMBOBOX_SHOW_TIME:Number = 0.5;
		/**
		 * bitmapData配置在XML中的标签名称 
		 */		
		public static var BITMAPDATA_TAG_NAME:String = "bitmapData";
		/**
		 * bitmap配置在XML中的标签名称 
		 */
		public static var BITMAP_TAG_NAME:String = "bitmap";
		/**
		 *  简单Alert的默认名称
		 */		
		public static var SIMPLE_ALERT_STYLE:String = "SimpleAlert";
		/**
		 * SimpleBitmapButton的filterString 
		 */		
		public static var SIMPLE_BITMAP_BUTTON_FILTER:String = "null,lightFilter,null,grayFilter";
		/**
		 *确定和取消按钮的间距 
		 */	
		public static var ALERT_BUTTON_GAPE:int = 30;
		
		public static var COMBOX_LIST_LAYER:DisplayObjectContainer;
		
		public static var SCROLL_UINT_INCREMENT:int = 15;
		public static var SCROLL_BLOCK_INCREMENT:int = 20;
		public static var DISPLACEMENT_OFFSET:uint = 1;
		public static var LANGUAGE:String;
		
		public static var ResloveConfigXMLPathCall:Function = null;
		public static var ResloveConfigZipPathCall:Function = null;
		public static var ResloveConfigUISourcePathCall:Function = null;
		
		public static var PLAY_SOUND_FUNC:Function = null;
		public static var SEND_USELOG_ID:Function = null;
		
		public static const ALPHA_LAYER_FILTER:String = "alphaLayerGilter";
		public static const CORE_MODULE_NAME:String = "core.xml";
		
		public static const DEFAULT_ICON_WIDTH:int = 78;
		public static const DEFAULT_ICON_HEIGHT:int = 78;
		
		public static const BACKUP_URL:String = "";
		public static const BACKUP_TO_REPLACE:String = "";
		public static const NEED_BACKUP:Boolean = false;
		public static function getUIConfigXMLPath(module:String):String
		{
			if(ResloveConfigXMLPathCall == null)
			{
				return "ui/"+LANGUAGE+"/xml/"+module+".xml";
			}else
			{
				return ResloveConfigXMLPathCall(module);
			}
		}
		
		public static function getUIConfigZIPPath():String
		{
			if(ResloveConfigZipPathCall == null)
			{
				return "ui/"+LANGUAGE+"/xml/xml.png";
			}else
			{
				return ResloveConfigZipPathCall();
			}
			
		}
		
		public static function getUISourcePath(module:String):String
		{
			if(ResloveConfigUISourcePathCall == null)
			{
				return "ui/"+LANGUAGE+"/swf/"+module+".swf";
			}else
			{
				return ResloveConfigUISourcePathCall(module);
			}
		}
		
		
	}
}